<?php
require_once dirname(__FILE__)."/../../../classes/Categories.class.php";
require_once dirname(__FILE__)."/../../../main/pagination/admin/categories/pagination.php"; 
 
             
$res = Categories::show_admin_categories($start, $num);
foreach($res as $value){
    $id = $value['id'];
    $name = $value['cat_name'];
    $year = $value['year'];
    echo <<<LABEL
    <table style = "width: 100%" valign="top">
      <tr>
        <td width = "100%" height = "30px" bgcolor="#FFDAB9" valign="top">
          <div class="left">
            $name   - $year
          </div>  
    <div class="right">
    <a href="categories.php?update=$id">Редактировать</a> | <a href="categories.php?del=$id">Удалить</a>
    </div>
     </td>
      </tr>
    </table>

    
LABEL;
    
}
?>
